home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / New System Software Extensions / OpenDoc A6 / OpenDoc Parts Framework / OPF / Examples / Draw / Sources / Templat.cpp < prev    next >
Encoding:
Text File  |  1994-04-21  |  5.4 KB  |  147 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Templat.cpp
  4. //    Release Version:    $ 1.0d1 $
  5. //
  6. //    Author:                Henri Lamiraux
  7. //    Creation Date:        3/28/94
  8. //
  9. //    Copyright:    © 1993, 1994 by Apple Computer, Inc., all rights reserved.
  10. //
  11. //========================================================================================
  12.  
  13. // ----- Framework Includes -----
  14.  
  15. #ifndef FWSTRS_H
  16. #include <FWStrs.h>
  17. #endif
  18. #ifndef BCSTOREU_H
  19. #include <BCStoreU.h>
  20. #endif
  21. #ifndef FWARDYNA_H
  22. #include <FWArDyna.h>
  23. #endif
  24. #ifndef FWMATH_H
  25. #include <FWMath.h>
  26. #endif
  27.  
  28. #include <BCUnboun.cpp>
  29. #include <BCDynami.cpp>
  30. #include <BCNodes.cpp>
  31. #include <BCHashTa.cpp>
  32.  
  33. #include <BCColl.cpp>
  34. #include <BCCollD.cpp>
  35. #include <BCCollU.cpp>
  36.  
  37. #include <BCMap.cpp>
  38. #include <BCMapD.cpp>
  39.  
  40. #include <FWStrgAr.tpp>
  41. #include <FWUtil.tpp>
  42.  
  43. #pragma template_access public
  44.  
  45. //========================================================================================
  46. // Forward declarations
  47. //========================================================================================
  48.  
  49. class XMPMacFacet;
  50. class XMPFrame;
  51.  
  52. class FW_CProxyFrame;
  53. class FW_CFrame;
  54. class FW_CWindow;
  55. class FW_CProxyRun;
  56. class FW_CPublishLink;
  57. class FW_CSubscribLink;
  58.  
  59. class CDrawPublishLink;
  60. class CBaseShape;
  61.  
  62. //----------------------------------------------------------------------------------------
  63. // ----- Trigger the template expansion of framework templates
  64. //----------------------------------------------------------------------------------------
  65.  
  66. #pragma template FW_Minimum(unsigned int, unsigned int)
  67. #pragma template FW_Minimum(long, long)
  68.  
  69. #pragma template BC_TDynamic<FW_CProxyFrame *,BC_CUnmanaged>
  70. #pragma template BC_TCollection<FW_CProxyFrame *>
  71. #pragma template BC_TDynamicCollection<FW_CProxyFrame *,BC_CUnmanaged>
  72. #pragma template BC_TCollectionActiveIterator<FW_CProxyFrame *>
  73.  
  74. #pragma template BC_TDynamic<XMPMacFacet *,BC_CUnmanaged>
  75. #pragma template BC_TCollection<XMPMacFacet *>
  76. #pragma template BC_TDynamicCollection<XMPMacFacet *,BC_CUnmanaged>
  77. #pragma template BC_TCollectionActiveIterator<XMPMacFacet *>
  78.  
  79. #pragma template BC_TDynamic<FW_CFrame *,BC_CUnmanaged>
  80. #pragma template BC_TCollection<FW_CFrame *>
  81. #pragma template BC_TDynamicCollection<FW_CFrame *,BC_CUnmanaged>
  82. #pragma template BC_TCollectionActiveIterator<FW_CFrame *>
  83.  
  84. #pragma template BC_TDynamic<FW_CWindow *,BC_CUnmanaged>
  85. #pragma template BC_TCollection<FW_CWindow *>
  86. #pragma template BC_TDynamicCollection<FW_CWindow *,BC_CUnmanaged>
  87. #pragma template BC_TCollectionActiveIterator<FW_CWindow *>
  88.  
  89. #pragma template BC_TDynamic<FW_CProxyRun *,BC_CUnmanaged>
  90. #pragma template BC_TCollection<FW_CProxyRun *>
  91. #pragma template BC_TDynamicCollection<FW_CProxyRun *,BC_CUnmanaged>
  92. #pragma template BC_TCollectionActiveIterator<FW_CProxyRun *>
  93.  
  94. #pragma template BC_TDynamic<FW_CPublishLink *,BC_CUnmanaged>
  95. #pragma template BC_TCollection<FW_CPublishLink *>
  96. #pragma template BC_TDynamicCollection<FW_CPublishLink *,BC_CUnmanaged>
  97. #pragma template BC_TCollectionActiveIterator<FW_CPublishLink *>
  98.  
  99. #pragma template BC_TCollectionActiveIterator<FW_CSubscribLink *>
  100.  
  101. // ----- Template expansion of Booch Map classes -----
  102.  
  103. #pragma template BC_TPair<FW_SPrivArcStr,FW_SPrivArcStr>
  104. #pragma template BC_TDynamic<BC_TPair<FW_SPrivArcStr,FW_SPrivArcStr>,BC_CUnmanaged>
  105. #pragma template BC_TTable<FW_SPrivArcStr,FW_SPrivArcStr,101,BC_TDynamic<BC_TPair<FW_SPrivArcStr,FW_SPrivArcStr>,BC_CUnmanaged>>
  106. #pragma template BC_TMap<FW_SPrivArcStr,FW_SPrivArcStr>
  107. #pragma template BC_TDynamicMap<FW_SPrivArcStr,FW_SPrivArcStr,101,BC_CUnmanaged>
  108. #pragma template BC_TMapActiveIterator<FW_SPrivArcStr,FW_SPrivArcStr>
  109.  
  110. #pragma template BC_TPair<FW_SPrivArcStr,FW_SPrivArcFun>
  111. #pragma template BC_TDynamic<BC_TPair<FW_SPrivArcStr,FW_SPrivArcFun>,BC_CUnmanaged>
  112. #pragma template BC_TTable<FW_SPrivArcStr,FW_SPrivArcFun,101,BC_TDynamic<BC_TPair<FW_SPrivArcStr,FW_SPrivArcFun>,BC_CUnmanaged>>
  113. #pragma template BC_TMap<FW_SPrivArcStr,FW_SPrivArcFun>
  114. #pragma template BC_TDynamicMap<FW_SPrivArcStr,FW_SPrivArcFun,101,BC_CUnmanaged>
  115. #pragma template BC_TMapActiveIterator<FW_SPrivArcStr,FW_SPrivArcFun>
  116.  
  117. // ----- Template expansion of String classes -----
  118.  
  119. #pragma template FW_TBoundedString<32>
  120. #pragma template FW_TBoundedString<255>
  121.  
  122. // ----- Template expansion of Archiver classes -----
  123.  
  124. #pragma template FW_TStringArchiver<FW_TBoundedString<32>>
  125. #pragma template FW_TStringArchiver<FW_TBoundedString<255>>
  126. #pragma template FW_TStringArchiver<FW_CDynamicString>
  127.  
  128.  
  129. //----------------------------------------------------------------------------------------
  130. // ----- Trigger the template expansion of DrawPart templates
  131. //----------------------------------------------------------------------------------------
  132.  
  133. #pragma template BC_TDynamic<CDrawPublishLink *,BC_CUnmanaged>
  134. #pragma template BC_TCollection<CDrawPublishLink *>
  135. #pragma template BC_TDynamicCollection<CDrawPublishLink *,BC_CUnmanaged>
  136. #pragma template BC_TCollectionActiveIterator<CDrawPublishLink *>
  137.  
  138. #pragma template BC_TDynamic<CBaseShape *,BC_CUnmanaged>
  139. #pragma template BC_TCollection<CBaseShape *>
  140. #pragma template BC_TDynamicCollection<CBaseShape *,BC_CUnmanaged>
  141. #pragma template BC_TCollectionActiveIterator<CBaseShape *>
  142.  
  143. #pragma template BC_TNode<CBaseShape *, BC_CUnmanaged>
  144. #pragma template BC_TUnbounded<CBaseShape *,BC_CUnmanaged>
  145. #pragma template BC_TUnboundedCollection<CBaseShape *,BC_CUnmanaged>
  146.  
  147. #pragma template FW_TCollectionActiveIterator<CBaseShape *>